package org.example.ThreadPoolLearning;

import java.util.concurrent.locks.ReentrantLock;

public class TestReentrantLock {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        try {
            // 业务代码
        }
        finally {
            lock.unlock();
        }
    }
}
